package com.lrs.java.j2se_self.thread;
import java.util.*;
public class TestTread1 {
	public static void main(String[] args){
		Sumadd s = new Sumadd();
		//s.start();
		//s.run();
		Thread t = new Thread(s);
		t.start();
		
		for(int i=0;i<100;i++){
			System.out.println("the main thread --"+i+"---");
		}
	}
		
}
class Sumadd implements Runnable{
//class Sumadd extends Thread{	
	public void run(){
		for(int i=0 ;i<100;i++){
			System.out.println("the  thread "+i+"---");
		}
	}
}